import { InjectionKey } from 'vue'
import { RadioGroupProps } from './radioGroup'
import { RadioProps } from './radio'

/**
 * radioGroupContext
 */
export type RadioGroupContext = RadioGroupProps & {
  activeName: string | number,

  changeEvent: (val: RadioProps['name']) => void
}

export const radioGroupKey: InjectionKey<RadioGroupContext> = Symbol('radioGroupKey')
